package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.platform.annotation.Excel;
import com.ruoyi.platform.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件存储表对象 m_file
 *
 * @author ruoyi
 * @date 2022-09-26
 */
@ApiModel(value="文件存储表对象 m_file", description="m_file业务表")
@TableName("m_file")
public class MFile extends BaseEntity<MFile>
{
private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 文件类型 1.首页轮播 2.藏品展示图 */
            @Excel(name = "文件类型 1.首页轮播 2.藏品展示图")
    @ApiModelProperty(value = "文件类型 1.首页轮播 2.藏品展示图")
    private String type;

    /** 文件名称 */
            @Excel(name = "文件名称")
    @ApiModelProperty(value = "文件名称")
    private String fileName;

    /** 源文件名称 */
            @Excel(name = "源文件名称")
    @ApiModelProperty(value = "源文件名称")
    private String originName;

    /** 是否删除:0=未删除,1=已删除 */
            @Excel(name = "是否删除:0=未删除,1=已删除")
    @ApiModelProperty(value = "是否删除:0=未删除,1=已删除")
    private String isDel;

    /** 文件url */
            @Excel(name = "文件url")
    @ApiModelProperty(value = "文件url")
    private String fileUrl;

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setType(String type)
            {
            this.type = type;
            }

    public String getType()
            {
            return type;
            }
    public void setFileName(String fileName)
            {
            this.fileName = fileName;
            }

    public String getFileName()
            {
            return fileName;
            }
    public void setOriginName(String originName)
            {
            this.originName = originName;
            }

    public String getOriginName()
            {
            return originName;
            }
    public void setIsDel(String isDel)
            {
            this.isDel = isDel;
            }

    public String getIsDel()
            {
            return isDel;
            }
    public void setFileUrl(String fileUrl)
            {
            this.fileUrl = fileUrl;
            }

    public String getFileUrl()
            {
            return fileUrl;
            }

@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("fileName", getFileName())
            .append("originName", getOriginName())
            .append("isDel", getIsDel())
            .append("updateBy", getUpdateBy())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("fileUrl", getFileUrl())
        .toString();
        }
        }
